3.1.98 \(\int (-a+b \cot (c+d x)) (a+b \cot (c+d x))^{5/2} \, dx\) [98]

Optimal. Leaf size=151 \[ -\frac {(i a-b) (a-i b)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{5/2} (i a+b) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{d}+\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d} \]

[Out]

-(I*a-b)*(a-I*b)^(5/2)*arctanh((a+b*cot(d*x+c))^(1/2)/(a-I*b)^(1/2))/d+(a+I*b)^(5/2)*(I*a+b)*arctanh((a+b*cot(
d*x+c))^(1/2)/(a+I*b)^(1/2))/d-2/5*b*(a+b*cot(d*x+c))^(5/2)/d+2*b*(a^2+b^2)*(a+b*cot(d*x+c))^(1/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.18, antiderivative size = 151, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {3609, 12, 3563, 3620, 3618, 65, 214} \begin {gather*} \frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}-\frac {(-b+i a) (a-i b)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{5/2} (b+i a) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-a + b*Cot[c + d*x])*(a + b*Cot[c + d*x])^(5/2),x]

[Out]

-(((I*a - b)*(a - I*b)^(5/2)*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - I*b]])/d) + ((a + I*b)^(5/2)*(I*a + b)*
ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + I*b]])/d + (2*b*(a^2 + b^2)*Sqrt[a + b*Cot[c + d*x]])/d - (2*b*(a +
b*Cot[c + d*x])^(5/2))/(5*d)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 3563

Int[((a_) + (b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b*((a + b*Tan[c + d*x])^(n - 1)/(d*(n - 1))
), x] + Int[(a^2 - b^2 + 2*a*b*Tan[c + d*x])*(a + b*Tan[c + d*x])^(n - 2), x] /; FreeQ[{a, b, c, d}, x] && NeQ
[a^2 + b^2, 0] && GtQ[n, 1]

Rule 3609

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[d*
((a + b*Tan[e + f*x])^m/(f*m)), x] + Int[(a + b*Tan[e + f*x])^(m - 1)*Simp[a*c - b*d + (b*c + a*d)*Tan[e + f*x
], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && GtQ[m, 0]

Rule 3618

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c*(
d/f), Subst[Int[(a + (b/d)*x)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]

Rule 3620

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c
 + I*d)/2, Int[(a + b*Tan[e + f*x])^m*(1 - I*Tan[e + f*x]), x], x] + Dist[(c - I*d)/2, Int[(a + b*Tan[e + f*x]
)^m*(1 + I*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0]
&& NeQ[c^2 + d^2, 0] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int (-a+b \cot (c+d x)) (a+b \cot (c+d x))^{5/2} \, dx &=-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}+\int \left (-a^2-b^2\right ) (a+b \cot (c+d x))^{3/2} \, dx\\ &=-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}+\left (-a^2-b^2\right ) \int (a+b \cot (c+d x))^{3/2} \, dx\\ &=\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}+\left (-a^2-b^2\right ) \int \frac {a^2-b^2+2 a b \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx\\ &=\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}-\frac {1}{2} \left ((a-i b)^2 \left (a^2+b^2\right )\right ) \int \frac {1+i \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx-\frac {1}{2} \left ((a+i b)^2 \left (a^2+b^2\right )\right ) \int \frac {1-i \cot (c+d x)}{\sqrt {a+b \cot (c+d x)}} \, dx\\ &=\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}-\frac {\left ((a+i b)^3 (i a+b)\right ) \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a+i b x}} \, dx,x,-i \cot (c+d x)\right )}{2 d}-\frac {\left ((a+i b) (i a+b)^3\right ) \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a-i b x}} \, dx,x,i \cot (c+d x)\right )}{2 d}\\ &=\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}-\frac {\left ((a-i b)^3 (a+i b)\right ) \text {Subst}\left (\int \frac {1}{-1-\frac {i a}{b}+\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \cot (c+d x)}\right )}{b d}-\frac {\left ((a-i b) (a+i b)^3\right ) \text {Subst}\left (\int \frac {1}{-1+\frac {i a}{b}-\frac {i x^2}{b}} \, dx,x,\sqrt {a+b \cot (c+d x)}\right )}{b d}\\ &=-\frac {(i a-b) (a-i b)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )}{d}+\frac {(a+i b)^{5/2} (i a+b) \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )}{d}+\frac {2 b \left (a^2+b^2\right ) \sqrt {a+b \cot (c+d x)}}{d}-\frac {2 b (a+b \cot (c+d x))^{5/2}}{5 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 4.13, size = 253, normalized size = 1.68 \begin {gather*} \frac {(-a+b \cot (c+d x)) (a+b \cot (c+d x))^{5/2} \left (\frac {5 i \left (a^2+b^2\right ) \left ((a-i b)^2 \sqrt {a+i b} \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a-i b}}\right )-\sqrt {a-i b} (a+i b)^2 \tanh ^{-1}\left (\frac {\sqrt {a+b \cot (c+d x)}}{\sqrt {a+i b}}\right )\right )}{\sqrt {a-i b} \sqrt {a+i b} (a+b \cot (c+d x))^{5/2}}+\frac {2 b \left (-4 a^2-6 b^2+2 a b \cot (c+d x)+b^2 \csc ^2(c+d x)\right )}{(a+b \cot (c+d x))^2}\right ) \sin (c+d x)}{5 d (-b \cos (c+d x)+a \sin (c+d x))} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-a + b*Cot[c + d*x])*(a + b*Cot[c + d*x])^(5/2),x]

[Out]

((-a + b*Cot[c + d*x])*(a + b*Cot[c + d*x])^(5/2)*(((5*I)*(a^2 + b^2)*((a - I*b)^2*Sqrt[a + I*b]*ArcTanh[Sqrt[
a + b*Cot[c + d*x]]/Sqrt[a - I*b]] - Sqrt[a - I*b]*(a + I*b)^2*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + I*b]]
))/(Sqrt[a - I*b]*Sqrt[a + I*b]*(a + b*Cot[c + d*x])^(5/2)) + (2*b*(-4*a^2 - 6*b^2 + 2*a*b*Cot[c + d*x] + b^2*
Csc[c + d*x]^2))/(a + b*Cot[c + d*x])^2)*Sin[c + d*x])/(5*d*(-(b*Cos[c + d*x]) + a*Sin[c + d*x]))

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(681\) vs. \(2(127)=254\).
time = 0.61, size = 682, normalized size = 4.52

method result size
derivativedivides \(-\frac {2 b \left (\frac {\left (a +b \cot \left (d x +c \right )\right )^{\frac {5}{2}}}{5}-a^{2} \sqrt {a +b \cot \left (d x +c \right )}-b^{2} \sqrt {a +b \cot \left (d x +c \right )}+\left (a^{2}+b^{2}\right ) \left (\frac {\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \ln \left (b \cot \left (d x +c \right )+a +\sqrt {a +b \cot \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (2 \sqrt {a^{2}+b^{2}}\, b^{2}-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {2 \sqrt {a +b \cot \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2}}+\frac {-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \ln \left (\sqrt {a +b \cot \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \cot \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (-2 \sqrt {a^{2}+b^{2}}\, b^{2}+\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \cot \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2}}\right )\right )}{d}\) \(682\)
default \(-\frac {2 b \left (\frac {\left (a +b \cot \left (d x +c \right )\right )^{\frac {5}{2}}}{5}-a^{2} \sqrt {a +b \cot \left (d x +c \right )}-b^{2} \sqrt {a +b \cot \left (d x +c \right )}+\left (a^{2}+b^{2}\right ) \left (\frac {\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \ln \left (b \cot \left (d x +c \right )+a +\sqrt {a +b \cot \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}+\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (2 \sqrt {a^{2}+b^{2}}\, b^{2}-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {2 \sqrt {a +b \cot \left (d x +c \right )}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2}}+\frac {-\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \ln \left (\sqrt {a +b \cot \left (d x +c \right )}\, \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-b \cot \left (d x +c \right )-a -\sqrt {a^{2}+b^{2}}\right )}{2}+\frac {2 \left (-2 \sqrt {a^{2}+b^{2}}\, b^{2}+\frac {\left (\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, \sqrt {a^{2}+b^{2}}\, a -\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, a^{2}+\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}\, b^{2}\right ) \sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}}{2}\right ) \arctan \left (\frac {\sqrt {2 \sqrt {a^{2}+b^{2}}+2 a}-2 \sqrt {a +b \cot \left (d x +c \right )}}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}\right )}{\sqrt {2 \sqrt {a^{2}+b^{2}}-2 a}}}{4 b^{2}}\right )\right )}{d}\) \(682\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-a+b*cot(d*x+c))*(a+b*cot(d*x+c))^(5/2),x,method=_RETURNVERBOSE)

[Out]

-2/d*b*(1/5*(a+b*cot(d*x+c))^(5/2)-a^2*(a+b*cot(d*x+c))^(1/2)-b^2*(a+b*cot(d*x+c))^(1/2)+(a^2+b^2)*(1/4/b^2*(1
/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2+(2*(a^2+b^2)^(1/2)+2*a)^
(1/2)*b^2)*ln(b*cot(d*x+c)+a+(a+b*cot(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)+(a^2+b^2)^(1/2))+2*(2*(a^2+b
^2)^(1/2)*b^2-1/2*((2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2+(2*(a^2+b
^2)^(1/2)+2*a)^(1/2)*b^2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan((2*(a+b*cot(d*x+
c))^(1/2)+(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)))+1/4/b^2*(-1/2*((2*(a^2+b^2)^(1/2)+2*a
)^(1/2)*(a^2+b^2)^(1/2)*a-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2+(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*b^2)*ln((a+b*cot(d*x
+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-b*cot(d*x+c)-a-(a^2+b^2)^(1/2))+2*(-2*(a^2+b^2)^(1/2)*b^2+1/2*((2*(a^
2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(1/2)*a-(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*a^2+(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*b^2)
*(2*(a^2+b^2)^(1/2)+2*a)^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan(((2*(a^2+b^2)^(1/2)+2*a)^(1/2)-2*(a+b*cot
(d*x+c))^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)))))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-a+b*cot(d*x+c))*(a+b*cot(d*x+c))^(5/2),x, algorithm="maxima")

[Out]

integrate((b*cot(d*x + c) + a)^(5/2)*(b*cot(d*x + c) - a), x)

________________________________________________________________________________________

Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-a+b*cot(d*x+c))*(a+b*cot(d*x+c))^(5/2),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int a^{3} \sqrt {a + b \cot {\left (c + d x \right )}}\, dx - \int \left (- b^{3} \sqrt {a + b \cot {\left (c + d x \right )}} \cot ^{3}{\left (c + d x \right )}\right )\, dx - \int \left (- a b^{2} \sqrt {a + b \cot {\left (c + d x \right )}} \cot ^{2}{\left (c + d x \right )}\right )\, dx - \int a^{2} b \sqrt {a + b \cot {\left (c + d x \right )}} \cot {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-a+b*cot(d*x+c))*(a+b*cot(d*x+c))**(5/2),x)

[Out]

-Integral(a**3*sqrt(a + b*cot(c + d*x)), x) - Integral(-b**3*sqrt(a + b*cot(c + d*x))*cot(c + d*x)**3, x) - In
tegral(-a*b**2*sqrt(a + b*cot(c + d*x))*cot(c + d*x)**2, x) - Integral(a**2*b*sqrt(a + b*cot(c + d*x))*cot(c +
 d*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-a+b*cot(d*x+c))*(a+b*cot(d*x+c))^(5/2),x, algorithm="giac")

[Out]

integrate((b*cot(d*x + c) + a)^(5/2)*(b*cot(d*x + c) - a), x)

________________________________________________________________________________________

Mupad [B]
time = 26.56, size = 2500, normalized size = 16.56 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(a + b*cot(c + d*x))^(5/2)*(a - b*cot(c + d*x)),x)

[Out]

log(((((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - a^7*d^2 - 5*a^3*b^4*d^2 + 10*a^5*b^2*d^2)/d^4)^(1/2
)*(((((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - a^7*d^2 - 5*a^3*b^4*d^2 + 10*a^5*b^2*d^2)/d^4)^(1/2)
*(64*a^2*b^5 + 64*a^4*b^3 - 32*a*b^2*d*(((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - a^7*d^2 - 5*a^3*b
^4*d^2 + 10*a^5*b^2*d^2)/d^4)^(1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) - (16*a^2*b^2*(a + b*cot(c + d*x))^(1/2
)*(a^6 - b^6 + 15*a^2*b^4 - 15*a^4*b^2))/d^2))/2 - (8*a^3*b^3*(3*a^2 - b^2)*(a^2 + b^2)^3)/d^3)*((20*a^6*b^8*d
^4 - a^4*b^10*d^4 - 110*a^8*b^6*d^4 + 100*a^10*b^4*d^4 - 25*a^12*b^2*d^4)^(1/2)/(4*d^4) - a^7/(4*d^2) - (5*a^3
*b^4)/(4*d^2) + (5*a^5*b^2)/(2*d^2))^(1/2) - log(((-((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d
^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d^4)^(1/2)*(((-((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d
^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d^4)^(1/2)*(64*a^2*b^5 + 64*a^4*b^3 + 32*a*b^2*d*(-((-a^4*b^2*d^4*(5*a^4
+ b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d^4)^(1/2)*(a + b*cot(c + d*x))^(1/2)
))/(2*d) + (16*a^2*b^2*(a + b*cot(c + d*x))^(1/2)*(a^6 - b^6 + 15*a^2*b^4 - 15*a^4*b^2))/d^2))/2 - (8*a^3*b^3*
(3*a^2 - b^2)*(a^2 + b^2)^3)/d^3)*(-(a^7*d^2 + (20*a^6*b^8*d^4 - a^4*b^10*d^4 - 110*a^8*b^6*d^4 + 100*a^10*b^4
*d^4 - 25*a^12*b^2*d^4)^(1/2) + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/(4*d^4))^(1/2) + log(((-((-a^4*b^2*d^4*(5*a^4
+ b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d^4)^(1/2)*(((-((-a^4*b^2*d^4*(5*a^4
+ b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d^4)^(1/2)*(64*a^2*b^5 + 64*a^4*b^3 -
 32*a*b^2*d*(-((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + a^7*d^2 + 5*a^3*b^4*d^2 - 10*a^5*b^2*d^2)/d
^4)^(1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) - (16*a^2*b^2*(a + b*cot(c + d*x))^(1/2)*(a^6 - b^6 + 15*a^2*b^4
- 15*a^4*b^2))/d^2))/2 - (8*a^3*b^3*(3*a^2 - b^2)*(a^2 + b^2)^3)/d^3)*((5*a^5*b^2)/(2*d^2) - a^7/(4*d^2) - (5*
a^3*b^4)/(4*d^2) - (20*a^6*b^8*d^4 - a^4*b^10*d^4 - 110*a^8*b^6*d^4 + 100*a^10*b^4*d^4 - 25*a^12*b^2*d^4)^(1/2
)/(4*d^4))^(1/2) - ((4*a^2*b)/d - (2*b*(a^2 + b^2))/d)*(a + b*cot(c + d*x))^(1/2) - log(((((((-b^6*d^4*(5*a^4
+ b^4 - 10*a^2*b^2)^2)^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/d^4)^(1/2)*(32*b^7 - 32*a^4*b^3 + 3
2*a*b^2*d*(((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/d^4)^(
1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) + (16*(a + b*cot(c + d*x))^(1/2)*(b^10 - 15*a^2*b^8 + 15*a^4*b^6 - a^6
*b^4))/d^2)*(((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/d^4)
^(1/2))/2 + (8*a*b^5*(a^2 - 3*b^2)*(a^2 + b^2)^3)/d^3)*(((20*a^2*b^12*d^4 - b^14*d^4 - 110*a^4*b^10*d^4 + 100*
a^6*b^8*d^4 - 25*a^8*b^6*d^4)^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/(4*d^4))^(1/2) + log((8*a*b^
5*(a^2 - 3*b^2)*(a^2 + b^2)^3)/d^3 - ((((((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) + 5*a*b^6*d^2 - 10*a^3
*b^4*d^2 + a^5*b^2*d^2)/d^4)^(1/2)*(32*a^4*b^3 - 32*b^7 + 32*a*b^2*d*(((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)
^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/d^4)^(1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) + (16*(a +
b*cot(c + d*x))^(1/2)*(b^10 - 15*a^2*b^8 + 15*a^4*b^6 - a^6*b^4))/d^2)*(((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^
2)^(1/2) + 5*a*b^6*d^2 - 10*a^3*b^4*d^2 + a^5*b^2*d^2)/d^4)^(1/2))/2)*((20*a^2*b^12*d^4 - b^14*d^4 - 110*a^4*b
^10*d^4 + 100*a^6*b^8*d^4 - 25*a^8*b^6*d^4)^(1/2)/(4*d^4) + (5*a*b^6)/(4*d^2) - (5*a^3*b^4)/(2*d^2) + (a^5*b^2
)/(4*d^2))^(1/2) - log(((((-((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - 5*a*b^6*d^2 + 10*a^3*b^4*d^2 - a^
5*b^2*d^2)/d^4)^(1/2)*(32*b^7 - 32*a^4*b^3 + 32*a*b^2*d*(-((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - 5*a
*b^6*d^2 + 10*a^3*b^4*d^2 - a^5*b^2*d^2)/d^4)^(1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) + (16*(a + b*cot(c + d*
x))^(1/2)*(b^10 - 15*a^2*b^8 + 15*a^4*b^6 - a^6*b^4))/d^2)*(-((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) -
5*a*b^6*d^2 + 10*a^3*b^4*d^2 - a^5*b^2*d^2)/d^4)^(1/2))/2 + (8*a*b^5*(a^2 - 3*b^2)*(a^2 + b^2)^3)/d^3)*(-((20*
a^2*b^12*d^4 - b^14*d^4 - 110*a^4*b^10*d^4 + 100*a^6*b^8*d^4 - 25*a^8*b^6*d^4)^(1/2) - 5*a*b^6*d^2 + 10*a^3*b^
4*d^2 - a^5*b^2*d^2)/(4*d^4))^(1/2) + log((8*a*b^5*(a^2 - 3*b^2)*(a^2 + b^2)^3)/d^3 - ((((-((-b^6*d^4*(5*a^4 +
 b^4 - 10*a^2*b^2)^2)^(1/2) - 5*a*b^6*d^2 + 10*a^3*b^4*d^2 - a^5*b^2*d^2)/d^4)^(1/2)*(32*a^4*b^3 - 32*b^7 + 32
*a*b^2*d*(-((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - 5*a*b^6*d^2 + 10*a^3*b^4*d^2 - a^5*b^2*d^2)/d^4)^(
1/2)*(a + b*cot(c + d*x))^(1/2)))/(2*d) + (16*(a + b*cot(c + d*x))^(1/2)*(b^10 - 15*a^2*b^8 + 15*a^4*b^6 - a^6
*b^4))/d^2)*(-((-b^6*d^4*(5*a^4 + b^4 - 10*a^2*b^2)^2)^(1/2) - 5*a*b^6*d^2 + 10*a^3*b^4*d^2 - a^5*b^2*d^2)/d^4
)^(1/2))/2)*((5*a*b^6)/(4*d^2) - (20*a^2*b^12*d^4 - b^14*d^4 - 110*a^4*b^10*d^4 + 100*a^6*b^8*d^4 - 25*a^8*b^6
*d^4)^(1/2)/(4*d^4) - (5*a^3*b^4)/(2*d^2) + (a^5*b^2)/(4*d^2))^(1/2) - log(((((-a^4*b^2*d^4*(5*a^4 + b^4 - 10*
a^2*b^2)^2)^(1/2) - a^7*d^2 - 5*a^3*b^4*d^2 + 1...

________________________________________________________________________________________